#include "comfun.h"

using namespace std;

void testCreateDirs()
{
    std::string str("./a/b/c/d.c");
    if (Mkdirs(str.c_str(), 0755)) {
        cout << "create ok of " << str << endl;
    } else {
        cout << "create dir failed." << endl;
    }
}
int main(int argc, char **argv)
{
    int i = 10;
    std::string str = NumberToString(i);
    double id = 100.00008f;
    string strdo = NumberToString(id);
    double id1 = StringToNumber<double>(strdo);
    cout << "str===" << str << ",,,,double number =" << strdo << " ,,,doub=" << id1 << endl;

    testCreateDirs();
    // cout << "test GetFileName(\"test.data\")=" << GetFileName("test.data") << endl;
    // cout << "test GetFileName(\"/home/test/test.data\")="
    //     << GetFileName("/home/test/test.data") << endl;
    return 0;
}
